1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
//! A list of all tones available and used by the Sounds library Arduboy2Tones
pub const TONES_END: u16 = 0x8000;
pub const TONES_REPEAT: u16 = 0x8001;
pub const TONE_HIGH_VOLUME: u16 = 0x8000;
pub const VOLUME_IN_TONE: u8 = 0;
pub const VOLUME_ALWAYS_NORMAL: u8 = 1;
pub const VOLUME_ALWAYS_HIGH: u8 = 2;

pub const NOTE_REST: u16 = 0;
pub const NOTE_C0: u16 = 16;
pub const NOTE_CS0: u16 = 17;
pub const NOTE_D0: u16 = 18;
pub const NOTE_DS0: u16 = 19;
pub const NOTE_E0: u16 = 21;
pub const NOTE_F0: u16 = 22;
pub const NOTE_FS0: u16 = 23;
pub const NOTE_G0: u16 = 25;
pub const NOTE_GS0: u16 = 26;
pub const NOTE_A0: u16 = 28;
pub const NOTE_AS0: u16 = 29;
pub const NOTE_B0: u16 = 31;
pub const NOTE_C1: u16 = 33;
pub const NOTE_CS1: u16 = 35;
pub const NOTE_D1: u16 = 37;
pub const NOTE_DS1: u16 = 39;
pub const NOTE_E1: u16 = 41;
pub const NOTE_F1: u16 = 44;
pub const NOTE_FS1: u16 = 46;
pub const NOTE_G1: u16 = 49;
pub const NOTE_GS1: u16 = 52;
pub const NOTE_A1: u16 = 55;
pub const NOTE_AS1: u16 = 58;
pub const NOTE_B1: u16 = 62;
pub const NOTE_C2: u16 = 65;
pub const NOTE_CS2: u16 = 69;
pub const NOTE_D2: u16 = 73;
pub const NOTE_DS2: u16 = 78;
pub const NOTE_E2: u16 = 82;
pub const NOTE_F2: u16 = 87;
pub const NOTE_FS2: u16 = 93;
pub const NOTE_G2: u16 = 98;
pub const NOTE_GS2: u16 = 104;
pub const NOTE_A2: u16 = 110;
pub const NOTE_AS2: u16 = 117;
pub const NOTE_B2: u16 = 123;
pub const NOTE_C3: u16 = 131;
pub const NOTE_CS3: u16 = 139;
pub const NOTE_D3: u16 = 147;
pub const NOTE_DS3: u16 = 156;
pub const NOTE_E3: u16 = 165;
pub const NOTE_F3: u16 = 175;
pub const NOTE_FS3: u16 = 185;
pub const NOTE_G3: u16 = 196;
pub const NOTE_GS3: u16 = 208;
pub const NOTE_A3: u16 = 220;
pub const NOTE_AS3: u16 = 233;
pub const NOTE_B3: u16 = 247;
pub const NOTE_C4: u16 = 262;
pub const NOTE_CS4: u16 = 277;
pub const NOTE_D4: u16 = 294;
pub const NOTE_DS4: u16 = 311;
pub const NOTE_E4: u16 = 330;
pub const NOTE_F4: u16 = 349;
pub const NOTE_FS4: u16 = 370;
pub const NOTE_G4: u16 = 392;
pub const NOTE_GS4: u16 = 415;
pub const NOTE_A4: u16 = 440;
pub const NOTE_AS4: u16 = 466;
pub const NOTE_B4: u16 = 494;
pub const NOTE_C5: u16 = 523;
pub const NOTE_CS5: u16 = 554;
pub const NOTE_D5: u16 = 587;
pub const NOTE_DS5: u16 = 622;
pub const NOTE_E5: u16 = 659;
pub const NOTE_F5: u16 = 698;
pub const NOTE_FS5: u16 = 740;
pub const NOTE_G5: u16 = 784;
pub const NOTE_GS5: u16 = 831;
pub const NOTE_A5: u16 = 880;
pub const NOTE_AS5: u16 = 932;
pub const NOTE_B5: u16 = 988;
pub const NOTE_C6: u16 = 1047;
pub const NOTE_CS6: u16 = 1109;
pub const NOTE_D6: u16 = 1175;
pub const NOTE_DS6: u16 = 1245;
pub const NOTE_E6: u16 = 1319;
pub const NOTE_F6: u16 = 1397;
pub const NOTE_FS6: u16 = 1480;
pub const NOTE_G6: u16 = 1568;
pub const NOTE_GS6: u16 = 1661;
pub const NOTE_A6: u16 = 1760;
pub const NOTE_AS6: u16 = 1865;
pub const NOTE_B6: u16 = 1976;
pub const NOTE_C7: u16 = 2093;
pub const NOTE_CS7: u16 = 2218;
pub const NOTE_D7: u16 = 2349;
pub const NOTE_DS7: u16 = 2489;
pub const NOTE_E7: u16 = 2637;
pub const NOTE_F7: u16 = 2794;
pub const NOTE_FS7: u16 = 2960;
pub const NOTE_G7: u16 = 3136;
pub const NOTE_GS7: u16 = 3322;
pub const NOTE_A7: u16 = 3520;
pub const NOTE_AS7: u16 = 3729;
pub const NOTE_B7: u16 = 3951;
pub const NOTE_C8: u16 = 4186;
pub const NOTE_CS8: u16 = 4435;
pub const NOTE_D8: u16 = 4699;
pub const NOTE_DS8: u16 = 4978;
pub const NOTE_E8: u16 = 5274;
pub const NOTE_F8: u16 = 5588;
pub const NOTE_FS8: u16 = 5920;
pub const NOTE_G8: u16 = 6272;
pub const NOTE_GS8: u16 = 6645;
pub const NOTE_A8: u16 = 7040;
pub const NOTE_AS8: u16 = 7459;
pub const NOTE_B8: u16 = 7902;
pub const NOTE_C9: u16 = 8372;
pub const NOTE_CS9: u16 = 8870;
pub const NOTE_D9: u16 = 9397;
pub const NOTE_DS9: u16 = 9956;
pub const NOTE_E9: u16 = 10548;
pub const NOTE_F9: u16 = 11175;
pub const NOTE_FS9: u16 = 11840;
pub const NOTE_G9: u16 = 12544;
pub const NOTE_GS9: u16 = 13290;
pub const NOTE_A9: u16 = 14080;
pub const NOTE_AS9: u16 = 14917;
pub const NOTE_B9: u16 = 15804;

pub const NOTE_C0H: u16 = NOTE_C0 + TONE_HIGH_VOLUME;
pub const NOTE_CS0H: u16 = NOTE_CS0 + TONE_HIGH_VOLUME;
pub const NOTE_D0H: u16 = NOTE_D0 + TONE_HIGH_VOLUME;
pub const NOTE_DS0H: u16 = NOTE_DS0 + TONE_HIGH_VOLUME;
pub const NOTE_E0H: u16 = NOTE_E0 + TONE_HIGH_VOLUME;
pub const NOTE_F0H: u16 = NOTE_F0 + TONE_HIGH_VOLUME;
pub const NOTE_FS0H: u16 = NOTE_FS0 + TONE_HIGH_VOLUME;
pub const NOTE_G0H: u16 = NOTE_G0 + TONE_HIGH_VOLUME;
pub const NOTE_GS0H: u16 = NOTE_GS0 + TONE_HIGH_VOLUME;
pub const NOTE_A0H: u16 = NOTE_A0 + TONE_HIGH_VOLUME;
pub const NOTE_AS0H: u16 = NOTE_AS0 + TONE_HIGH_VOLUME;
pub const NOTE_B0H: u16 = NOTE_B0 + TONE_HIGH_VOLUME;
pub const NOTE_C1H: u16 = NOTE_C1 + TONE_HIGH_VOLUME;
pub const NOTE_CS1H: u16 = NOTE_CS1 + TONE_HIGH_VOLUME;
pub const NOTE_D1H: u16 = NOTE_D1 + TONE_HIGH_VOLUME;
pub const NOTE_DS1H: u16 = NOTE_DS1 + TONE_HIGH_VOLUME;
pub const NOTE_E1H: u16 = NOTE_E1 + TONE_HIGH_VOLUME;
pub const NOTE_F1H: u16 = NOTE_F1 + TONE_HIGH_VOLUME;
pub const NOTE_FS1H: u16 = NOTE_FS1 + TONE_HIGH_VOLUME;
pub const NOTE_G1H: u16 = NOTE_G1 + TONE_HIGH_VOLUME;
pub const NOTE_GS1H: u16 = NOTE_GS1 + TONE_HIGH_VOLUME;
pub const NOTE_A1H: u16 = NOTE_A1 + TONE_HIGH_VOLUME;
pub const NOTE_AS1H: u16 = NOTE_AS1 + TONE_HIGH_VOLUME;
pub const NOTE_B1H: u16 = NOTE_B1 + TONE_HIGH_VOLUME;
pub const NOTE_C2H: u16 = NOTE_C2 + TONE_HIGH_VOLUME;
pub const NOTE_CS2H: u16 = NOTE_CS2 + TONE_HIGH_VOLUME;
pub const NOTE_D2H: u16 = NOTE_D2 + TONE_HIGH_VOLUME;
pub const NOTE_DS2H: u16 = NOTE_DS2 + TONE_HIGH_VOLUME;
pub const NOTE_E2H: u16 = NOTE_E2 + TONE_HIGH_VOLUME;
pub const NOTE_F2H: u16 = NOTE_F2 + TONE_HIGH_VOLUME;
pub const NOTE_FS2H: u16 = NOTE_FS2 + TONE_HIGH_VOLUME;
pub const NOTE_G2H: u16 = NOTE_G2 + TONE_HIGH_VOLUME;
pub const NOTE_GS2H: u16 = NOTE_GS2 + TONE_HIGH_VOLUME;
pub const NOTE_A2H: u16 = NOTE_A2 + TONE_HIGH_VOLUME;
pub const NOTE_AS2H: u16 = NOTE_AS2 + TONE_HIGH_VOLUME;
pub const NOTE_B2H: u16 = NOTE_B2 + TONE_HIGH_VOLUME;
pub const NOTE_C3H: u16 = NOTE_C3 + TONE_HIGH_VOLUME;
pub const NOTE_CS3H: u16 = NOTE_CS3 + TONE_HIGH_VOLUME;
pub const NOTE_D3H: u16 = NOTE_D3 + TONE_HIGH_VOLUME;
pub const NOTE_DS3H: u16 = NOTE_DS3 + TONE_HIGH_VOLUME;
pub const NOTE_E3H: u16 = NOTE_E3 + TONE_HIGH_VOLUME;
pub const NOTE_F3H: u16 = NOTE_F3 + TONE_HIGH_VOLUME;
pub const NOTE_FS3H: u16 = NOTE_F3 + TONE_HIGH_VOLUME;
pub const NOTE_G3H: u16 = NOTE_G3 + TONE_HIGH_VOLUME;
pub const NOTE_GS3H: u16 = NOTE_GS3 + TONE_HIGH_VOLUME;
pub const NOTE_A3H: u16 = NOTE_A3 + TONE_HIGH_VOLUME;
pub const NOTE_AS3H: u16 = NOTE_AS3 + TONE_HIGH_VOLUME;
pub const NOTE_B3H: u16 = NOTE_B3 + TONE_HIGH_VOLUME;
pub const NOTE_C4H: u16 = NOTE_C4 + TONE_HIGH_VOLUME;
pub const NOTE_CS4H: u16 = NOTE_CS4 + TONE_HIGH_VOLUME;
pub const NOTE_D4H: u16 = NOTE_D4 + TONE_HIGH_VOLUME;
pub const NOTE_DS4H: u16 = NOTE_DS4 + TONE_HIGH_VOLUME;
pub const NOTE_E4H: u16 = NOTE_E4 + TONE_HIGH_VOLUME;
pub const NOTE_F4H: u16 = NOTE_F4 + TONE_HIGH_VOLUME;
pub const NOTE_FS4H: u16 = NOTE_FS4 + TONE_HIGH_VOLUME;
pub const NOTE_G4H: u16 = NOTE_G4 + TONE_HIGH_VOLUME;
pub const NOTE_GS4H: u16 = NOTE_GS4 + TONE_HIGH_VOLUME;
pub const NOTE_A4H: u16 = NOTE_A4 + TONE_HIGH_VOLUME;
pub const NOTE_AS4H: u16 = NOTE_AS4 + TONE_HIGH_VOLUME;
pub const NOTE_B4H: u16 = NOTE_B4 + TONE_HIGH_VOLUME;
pub const NOTE_C5H: u16 = NOTE_C5 + TONE_HIGH_VOLUME;
pub const NOTE_CS5H: u16 = NOTE_CS5 + TONE_HIGH_VOLUME;
pub const NOTE_D5H: u16 = NOTE_D5 + TONE_HIGH_VOLUME;
pub const NOTE_DS5H: u16 = NOTE_DS5 + TONE_HIGH_VOLUME;
pub const NOTE_E5H: u16 = NOTE_E5 + TONE_HIGH_VOLUME;
pub const NOTE_F5H: u16 = NOTE_F5 + TONE_HIGH_VOLUME;
pub const NOTE_FS5H: u16 = NOTE_FS5 + TONE_HIGH_VOLUME;
pub const NOTE_G5H: u16 = NOTE_G5 + TONE_HIGH_VOLUME;
pub const NOTE_GS5H: u16 = NOTE_GS5 + TONE_HIGH_VOLUME;
pub const NOTE_A5H: u16 = NOTE_A5 + TONE_HIGH_VOLUME;
pub const NOTE_AS5H: u16 = NOTE_AS5 + TONE_HIGH_VOLUME;
pub const NOTE_B5H: u16 = NOTE_B5 + TONE_HIGH_VOLUME;
pub const NOTE_C6H: u16 = NOTE_C6 + TONE_HIGH_VOLUME;
pub const NOTE_CS6H: u16 = NOTE_CS6 + TONE_HIGH_VOLUME;
pub const NOTE_D6H: u16 = NOTE_D6 + TONE_HIGH_VOLUME;
pub const NOTE_DS6H: u16 = NOTE_DS6 + TONE_HIGH_VOLUME;
pub const NOTE_E6H: u16 = NOTE_E6 + TONE_HIGH_VOLUME;
pub const NOTE_F6H: u16 = NOTE_F6 + TONE_HIGH_VOLUME;
pub const NOTE_FS6H: u16 = NOTE_FS6 + TONE_HIGH_VOLUME;
pub const NOTE_G6H: u16 = NOTE_G6 + TONE_HIGH_VOLUME;
pub const NOTE_GS6H: u16 = NOTE_GS6 + TONE_HIGH_VOLUME;
pub const NOTE_A6H: u16 = NOTE_A6 + TONE_HIGH_VOLUME;
pub const NOTE_AS6H: u16 = NOTE_AS6 + TONE_HIGH_VOLUME;
pub const NOTE_B6H: u16 = NOTE_B6 + TONE_HIGH_VOLUME;
pub const NOTE_C7H: u16 = NOTE_C7 + TONE_HIGH_VOLUME;
pub const NOTE_CS7H: u16 = NOTE_CS7 + TONE_HIGH_VOLUME;
pub const NOTE_D7H: u16 = NOTE_D7 + TONE_HIGH_VOLUME;
pub const NOTE_DS7H: u16 = NOTE_DS7 + TONE_HIGH_VOLUME;
pub const NOTE_E7H: u16 = NOTE_E7 + TONE_HIGH_VOLUME;
pub const NOTE_F7H: u16 = NOTE_F7 + TONE_HIGH_VOLUME;
pub const NOTE_FS7H: u16 = NOTE_FS7 + TONE_HIGH_VOLUME;
pub const NOTE_G7H: u16 = NOTE_G7 + TONE_HIGH_VOLUME;
pub const NOTE_GS7H: u16 = NOTE_GS7 + TONE_HIGH_VOLUME;
pub const NOTE_A7H: u16 = NOTE_A7 + TONE_HIGH_VOLUME;
pub const NOTE_AS7H: u16 = NOTE_AS7 + TONE_HIGH_VOLUME;
pub const NOTE_B7H: u16 = NOTE_B7 + TONE_HIGH_VOLUME;
pub const NOTE_C8H: u16 = NOTE_C8 + TONE_HIGH_VOLUME;
pub const NOTE_CS8H: u16 = NOTE_CS8 + TONE_HIGH_VOLUME;
pub const NOTE_D8H: u16 = NOTE_D8 + TONE_HIGH_VOLUME;
pub const NOTE_DS8H: u16 = NOTE_DS8 + TONE_HIGH_VOLUME;
pub const NOTE_E8H: u16 = NOTE_E8 + TONE_HIGH_VOLUME;
pub const NOTE_F8H: u16 = NOTE_F8 + TONE_HIGH_VOLUME;
pub const NOTE_FS8H: u16 = NOTE_FS8 + TONE_HIGH_VOLUME;
pub const NOTE_G8H: u16 = NOTE_G8 + TONE_HIGH_VOLUME;
pub const NOTE_GS8H: u16 = NOTE_GS8 + TONE_HIGH_VOLUME;
pub const NOTE_A8H: u16 = NOTE_A8 + TONE_HIGH_VOLUME;
pub const NOTE_AS8H: u16 = NOTE_AS8 + TONE_HIGH_VOLUME;
pub const NOTE_B8H: u16 = NOTE_B8 + TONE_HIGH_VOLUME;
pub const NOTE_C9H: u16 = NOTE_C9 + TONE_HIGH_VOLUME;
pub const NOTE_CS9H: u16 = NOTE_CS9 + TONE_HIGH_VOLUME;
pub const NOTE_D9H: u16 = NOTE_D9 + TONE_HIGH_VOLUME;
pub const NOTE_DS9H: u16 = NOTE_DS9 + TONE_HIGH_VOLUME;
pub const NOTE_E9H: u16 = NOTE_E9 + TONE_HIGH_VOLUME;
pub const NOTE_F9H: u16 = NOTE_F9 + TONE_HIGH_VOLUME;
pub const NOTE_FS9H: u16 = NOTE_FS9 + TONE_HIGH_VOLUME;
pub const NOTE_G9H: u16 = NOTE_G9 + TONE_HIGH_VOLUME;
pub const NOTE_GS9H: u16 = NOTE_GS9 + TONE_HIGH_VOLUME;
pub const NOTE_A9H: u16 = NOTE_A9 + TONE_HIGH_VOLUME;
pub const NOTE_AS9H: u16 = NOTE_AS9 + TONE_HIGH_VOLUME;
pub const NOTE_B9H: u16 = NOTE_B9 + TONE_HIGH_VOLUME;